/ BBS in a Box 5
/ BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MacsBug 6.2.2.cpt / MacsBug 6.2.2 / dcmds / Pascal Samples / Where.p ![]() | < prev |
MacBinary | 1991-11-19 | 2.4 KB | [TEXT/MPS ] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | ZX81 Sinclair BASIC (image/sinclairBASIC) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Tue Nov 19 10:55:31 1991, modified Tue Nov 19 10:55:31 1991, creator 'MPS ', type ASCII, 1905 bytes "Where.p" , at 0x7f1 336 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MPS ] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 57 68 65 72 65 2e | 70 00 00 00 00 00 00 00 |..Where.|p.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 07 71 00 | 00 01 50 a5 4e e4 73 a5 |......q.|..P.N.s.|
|00000060| 4e e4 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |N.s.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bf c8 00 00 |........|........|
|00000080| 55 4e 49 54 20 57 68 65 | 72 65 3b 0d 0d 28 2a 20 |UNIT Whe|re;..(* |
|00000090| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 4d 50 |The foll|owing MP|
|000000a0| 57 20 63 6f 6d 6d 61 6e | 64 73 20 77 69 6c 6c 20 |W comman|ds will |
|000000b0| 62 75 69 6c 64 20 74 68 | 65 20 64 63 6d 64 20 61 |build th|e dcmd a|
|000000c0| 6e 64 20 63 6f 70 79 20 | 69 74 20 74 6f 20 74 68 |nd copy |it to th|
|000000d0| 65 0d 20 20 20 22 44 65 | 62 75 67 67 65 72 20 50 |e. "De|bugger P|
|000000e0| 72 65 66 73 22 20 66 69 | 6c 65 20 69 6e 20 74 68 |refs" fi|le in th|
|000000f0| 65 20 53 79 73 74 65 6d | 20 66 6f 6c 64 65 72 2e |e System| folder.|
|00000100| 20 54 68 65 20 64 63 6d | 64 27 73 20 6e 61 6d 65 | The dcm|d's name|
|00000110| 20 69 6e 0d 09 09 20 4d | 61 63 73 42 75 67 20 77 | in... M|acsBug w|
|00000120| 69 6c 6c 20 62 65 20 74 | 68 65 20 6e 61 6d 65 20 |ill be t|he name |
|00000130| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 62 75 69 6c |of the f|ile buil|
|00000140| 74 20 62 79 20 74 68 65 | 20 4c 69 6e 6b 65 72 2e |t by the| Linker.|
|00000150| 0d 0d 09 20 20 20 20 50 | 61 73 63 61 6c 20 57 68 |... P|ascal Wh|
|00000160| 65 72 65 2e 70 0d 09 20 | 20 20 20 4c 69 6e 6b 20 |ere.p.. | Link |
|00000170| 64 63 6d 64 47 6c 75 65 | 2e 61 2e 6f 20 57 68 65 |dcmdGlue|.a.o Whe|
|00000180| 72 65 2e 70 2e 6f 20 7b | 4c 69 62 72 61 72 69 65 |re.p.o {|Librarie|
|00000190| 73 7d 52 75 6e 74 69 6d | 65 2e 6f 20 2d 6f 20 57 |s}Runtim|e.o -o W|
|000001a0| 68 65 72 65 0d 09 20 20 | 20 20 42 75 69 6c 64 44 |here.. | BuildD|
|000001b0| 63 6d 64 20 57 68 65 72 | 65 20 31 30 32 0d 09 09 |cmd Wher|e 102...|
|000001c0| 09 09 09 45 63 68 6f 20 | 27 69 6e 63 6c 75 64 65 |...Echo |'include|
|000001d0| 20 22 57 68 65 72 65 22 | 3b 27 09 09 09 7c 09 09 | "Where"|;'...|..|
|000001e0| 09 52 65 7a 20 2d 61 20 | 2d 6f 20 22 7b 73 79 73 |.Rez -a |-o "{sys|
|000001f0| 74 65 6d 46 6f 6c 64 65 | 72 7d 44 65 62 75 67 67 |temFolde|r}Debugg|
|00000200| 65 72 20 50 72 65 66 73 | 22 0d 2a 29 0d 0d 7b 24 |er Prefs|".*)..{$|
|00000210| 52 2d 7d 0d 0d 49 4e 54 | 45 52 46 41 43 45 0d 0d |R-}..INT|ERFACE..|
|00000220| 09 09 55 53 45 53 20 4d | 65 6d 54 79 70 65 73 2c |..USES M|emTypes,|
|00000230| 20 64 63 6d 64 3b 0d 09 | 09 0d 20 20 7b 20 50 75 | dcmd;..|.. { Pu|
|00000240| 62 6c 69 63 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |blic dec|laration|
|00000250| 20 66 6f 72 20 64 63 6d | 64 47 6c 75 65 2e 20 4d | for dcm|dGlue. M|
|00000260| 75 73 74 20 62 65 20 69 | 6e 20 65 76 65 72 79 20 |ust be i|n every |
|00000270| 64 63 6d 64 2e 20 54 68 | 65 20 6e 61 6d 65 20 63 |dcmd. Th|e name c|
|00000280| 61 6e 6e 6f 74 20 62 65 | 20 63 68 61 6e 67 65 64 |annot be| changed|
|00000290| 2e 20 7d 0d 09 09 50 52 | 4f 43 45 44 55 52 45 20 |. }...PR|OCEDURE |
|000002a0| 43 6f 6d 6d 61 6e 64 45 | 6e 74 72 79 20 28 70 61 |CommandE|ntry (pa|
|000002b0| 72 61 6d 50 74 72 3a 20 | 64 63 6d 64 42 6c 6f 63 |ramPtr: |dcmdBloc|
|000002c0| 6b 50 74 72 29 3b 0d 0d | 0d 49 4d 50 4c 45 4d 45 |kPtr);..|.IMPLEME|
|000002d0| 4e 54 41 54 49 4f 4e 0d | 0d 43 4f 4e 53 54 20 43 |NTATION.|.CONST C|
|000002e0| 52 20 3d 20 24 30 44 3b | 0d 0d 0d 50 52 4f 43 45 |R = $0D;|...PROCE|
|000002f0| 44 55 52 45 20 43 6f 6d | 6d 61 6e 64 45 6e 74 72 |DURE Com|mandEntr|
|00000300| 79 20 28 70 61 72 61 6d | 50 74 72 3a 20 44 43 6d |y (param|Ptr: DCm|
|00000310| 64 42 6c 6f 63 6b 50 74 | 72 29 3b 0d 56 41 52 20 |dBlockPt|r);.VAR |
|00000320| 61 64 64 72 65 73 73 3a | 20 4c 4f 4e 47 49 4e 54 |address:| LONGINT|
|00000330| 3b 0d 20 20 20 20 63 68 | 3a 20 20 20 20 20 20 43 |;. ch|: C|
|00000340| 48 41 52 3b 0d 09 09 09 | 09 6f 6b 3a 20 20 20 20 |HAR;....|.ok: |
|00000350| 20 20 42 4f 4f 4c 45 41 | 4e 3b 0d 09 09 09 09 6e | BOOLEA|N;.....n|
|00000360| 61 6d 65 3a 20 20 20 20 | 53 74 72 32 35 35 3b 0d |ame: |Str255;.|
|00000370| 42 45 47 49 4e 0d 20 20 | 49 46 20 70 61 72 61 6d |BEGIN. |IF param|
|00000380| 50 74 72 5e 2e 72 65 71 | 75 65 73 74 20 3d 20 64 |Ptr^.req|uest = d|
|00000390| 63 6d 64 49 6e 69 74 20 | 54 48 45 4e 0d 09 09 20 |cmdInit |THEN... |
|000003a0| 20 42 45 47 49 4e 20 7b | 20 54 68 65 20 64 63 6d | BEGIN {| The dcm|
|000003b0| 64 20 67 65 74 73 20 63 | 61 6c 6c 65 64 20 6f 6e |d gets c|alled on|
|000003c0| 63 65 20 77 68 65 6e 20 | 6c 6f 61 64 65 64 20 74 |ce when |loaded t|
|000003d0| 6f 20 69 6e 69 74 20 69 | 74 73 65 6c 66 20 7d 0d |o init i|tself }.|
|000003e0| 09 09 09 09 45 4e 44 0d | 09 09 45 4c 53 45 0d 20 |....END.|..ELSE. |
|000003f0| 20 49 46 20 70 61 72 61 | 6d 50 74 72 5e 2e 72 65 | IF para|mPtr^.re|
|00000400| 71 75 65 73 74 20 3d 20 | 64 63 6d 64 44 6f 49 74 |quest = |dcmdDoIt|
|00000410| 20 54 48 45 4e 0d 09 09 | 20 20 42 45 47 49 4e 20 | THEN...| BEGIN |
|00000420| 7b 20 44 6f 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |{ Do the| command|
|00000430| 27 73 20 6e 6f 72 6d 61 | 6c 20 66 75 6e 63 74 69 |'s norma|l functi|
|00000440| 6f 6e 20 7d 0d 09 09 09 | 09 49 46 20 64 63 6d 64 |on }....|.IF dcmd|
|00000450| 50 65 65 6b 41 74 4e 65 | 78 74 43 68 61 72 20 3d |PeekAtNe|xtChar =|
|00000460| 20 43 48 52 28 43 52 29 | 20 54 48 45 4e 0d 09 09 | CHR(CR)| THEN...|
|00000470| 09 09 20 20 61 64 64 72 | 65 73 73 20 3a 3d 20 70 |.. addr|ess := p|
|00000480| 61 72 61 6d 50 74 72 5e | 2e 72 65 67 69 73 74 65 |aramPtr^|.registe|
|00000490| 72 46 69 6c 65 5e 5b 50 | 43 52 65 67 69 73 74 65 |rFile^[P|CRegiste|
|000004a0| 72 5d 0d 09 09 09 09 45 | 4c 53 45 0d 09 09 09 09 |r].....E|LSE.....|
|000004b0| 20 20 42 45 47 49 4e 0d | 09 09 09 09 20 20 63 68 | BEGIN.|.... ch|
|000004c0| 20 3a 3d 20 64 63 6d 64 | 47 65 74 4e 65 78 74 45 | := dcmd|GetNextE|
|000004d0| 78 70 72 65 73 73 69 6f | 6e 20 28 61 64 64 72 65 |xpressio|n (addre|
|000004e0| 73 73 2c 20 6f 6b 29 3b | 0d 09 09 09 09 09 09 49 |ss, ok);|.......I|
|000004f0| 46 20 4e 4f 54 20 6f 6b | 20 54 48 45 4e 0d 09 09 |F NOT ok| THEN...|
|00000500| 09 09 09 09 20 20 42 45 | 47 49 4e 0d 09 09 09 09 |.... BE|GIN.....|
|00000510| 09 09 09 09 64 63 6d 64 | 44 72 61 77 4c 69 6e 65 |....dcmd|DrawLine|
|00000520| 20 28 27 53 79 6e 74 61 | 78 20 65 72 72 6f 72 27 | ('Synta|x error'|
|00000530| 29 3b 0d 09 09 09 09 09 | 09 09 09 45 78 69 74 20 |);......|...Exit |
|00000540| 28 43 6f 6d 6d 61 6e 64 | 45 6e 74 72 79 29 3b 0d |(Command|Entry);.|
|00000550| 09 09 09 09 09 09 09 09 | 45 4e 44 3b 0d 09 09 09 |........|END;....|
|00000560| 09 09 09 45 4e 44 3b 0d | 09 09 09 09 49 46 20 28 |...END;.|....IF (|
|00000570| 61 64 64 72 65 73 73 20 | 3e 3d 20 24 30 30 30 30 |address |>= $0000|
|00000580| 41 30 30 30 29 20 41 4e | 44 20 28 61 64 64 72 65 |A000) AN|D (addre|
|00000590| 73 73 20 3c 3d 20 24 30 | 30 30 30 41 42 46 46 29 |ss <= $0|000ABFF)|
|000005a0| 20 54 48 45 4e 0d 09 09 | 09 09 20 20 42 45 47 49 | THEN...|.. BEGI|
|000005b0| 4e 0d 09 09 09 09 09 09 | 64 63 6d 64 47 65 74 54 |N.......|dcmdGetT|
|000005c0| 72 61 70 4e 61 6d 65 20 | 28 61 64 64 72 65 73 73 |rapName |(address|
|000005d0| 2c 20 6e 61 6d 65 29 3b | 0d 09 09 09 09 09 09 64 |, name);|.......d|
|000005e0| 63 6d 64 44 72 61 77 4c | 69 6e 65 20 28 6e 61 6d |cmdDrawL|ine (nam|
|000005f0| 65 29 3b 0d 09 09 09 09 | 09 09 45 4e 44 0d 09 09 |e);.....|..END...|
|00000600| 09 09 45 4c 53 45 0d 09 | 09 09 09 20 20 42 45 47 |..ELSE..|... BEG|
|00000610| 49 4e 0d 09 09 09 09 09 | 09 64 63 6d 64 47 65 74 |IN......|.dcmdGet|
|00000620| 4e 61 6d 65 41 6e 64 4f | 66 66 73 65 74 20 28 61 |NameAndO|ffset (a|
|00000630| 64 64 72 65 73 73 2c 20 | 6e 61 6d 65 29 3b 0d 09 |ddress, |name);..|
|00000640| 09 09 09 20 20 49 46 20 | 4c 65 6e 67 74 68 20 28 |... IF |Length (|
|00000650| 6e 61 6d 65 29 20 3e 20 | 30 0d 09 09 09 09 09 09 |name) > |0.......|
|00000660| 20 20 54 48 45 4e 20 64 | 63 6d 64 44 72 61 77 4c | THEN d|cmdDrawL|
|00000670| 69 6e 65 20 28 6e 61 6d | 65 29 0d 09 09 09 09 09 |ine (nam|e)......|
|00000680| 09 09 09 45 4c 53 45 20 | 64 63 6d 64 44 72 61 77 |...ELSE |dcmdDraw|
|00000690| 4c 69 6e 65 20 28 27 4e | 6f 20 70 72 6f 63 65 64 |Line ('N|o proced|
|000006a0| 75 72 65 20 6e 61 6d 65 | 20 66 6f 75 6e 64 27 29 |ure name| found')|
|000006b0| 3b 0d 09 09 09 09 09 09 | 45 4e 44 3b 0d 09 09 09 |;.......|END;....|
|000006c0| 09 45 4e 44 0d 09 09 45 | 4c 53 45 0d 20 20 49 46 |.END...E|LSE. IF|
|000006d0| 20 70 61 72 61 6d 50 74 | 72 5e 2e 72 65 71 75 65 | paramPt|r^.reque|
|000006e0| 73 74 20 3d 20 64 63 6d | 64 48 65 6c 70 20 54 48 |st = dcm|dHelp TH|
|000006f0| 45 4e 0d 09 09 20 20 42 | 45 47 49 4e 20 7b 20 44 |EN... B|EGIN { D|
|00000700| 69 73 70 6c 61 79 20 74 | 68 65 20 63 6f 6d 6d 61 |isplay t|he comma|
|00000710| 6e 64 27 73 20 68 65 6c | 70 20 69 6e 66 6f 72 6d |nd's hel|p inform|
|00000720| 61 74 69 6f 6e 20 7d 0d | 09 09 09 09 64 63 6d 64 |ation }.|....dcmd|
|00000730| 44 72 61 77 4c 69 6e 65 | 20 28 27 57 48 45 52 45 |DrawLine| ('WHERE|
|00000740| 20 5b 61 64 64 72 20 7c | 20 74 72 61 70 5d 27 29 | [addr || trap]')|
|00000750| 3b 0d 09 09 09 09 64 63 | 6d 64 44 72 61 77 4c 69 |;.....dc|mdDrawLi|
|00000760| 6e 65 20 28 27 20 20 20 | 44 69 73 70 6c 61 79 20 |ne (' |Display |
|00000770| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00000780| 74 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 72 |t the ad|dress or|
|00000790| 20 74 72 61 70 27 29 3b | 0d 09 09 09 09 64 63 6d | trap');|.....dcm|
|000007a0| 64 44 72 61 77 4c 69 6e | 65 20 28 27 20 20 20 49 |dDrawLin|e (' I|
|000007b0| 66 20 6e 6f 20 70 61 72 | 61 6d 65 74 65 72 20 74 |f no par|ameter t|
|000007c0| 68 65 6e 20 75 73 65 20 | 50 43 20 61 73 20 74 68 |hen use |PC as th|
|000007d0| 65 20 61 64 64 72 65 73 | 73 27 29 3b 0d 09 09 09 |e addres|s');....|
|000007e0| 09 45 4e 44 3b 0d 45 4e | 44 3b 0d 0d 45 4e 44 2e |.END;.EN|D;..END.|
|000007f0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 1e | 00 00 00 1e 00 00 00 32 |........|.......2|
|00000810| 28 22 54 69 74 6c 65 53 | 74 72 22 29 2c 0d 7d 3b |("TitleS|tr"),.};|
|00000820| 0d 0d 1e 2e 00 0b 26 4c | 41 ed fb ea 52 88 70 00 |......&L|A...R.p.|
|00000830| 07 57 68 65 72 65 2e 70 | 02 00 00 00 54 45 58 54 |.Where.p|....TEXT|
|00000840| 4d 50 53 20 01 00 00 00 | 00 80 00 00 00 00 dc d5 |MPS ....|........|
|00000850| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 80 |..TEXTMP|S ......|
|00000860| 00 00 70 46 00 00 00 00 | 00 00 00 00 00 00 00 00 |..pF....|........|
|00000870| 00 00 9d 24 75 ad 00 00 | 07 71 00 00 01 50 67 2e |...$u...|.q...Pg.|
|00000880| 53 00 67 24 53 00 67 14 | 53 00 67 2e 53 00 67 24 |S.g$S.g.|S.g.S.g$|
|00000890| 53 00 67 0e 04 00 00 72 | 67 26 60 2a 16 fc 00 72 |S.g....r|g&`*...r|
|000008a0| 60 54 16 fc 00 6e 60 4e | 16 fc 00 74 60 48 16 fc |`T...n`N|...t`H..|
|000008b0| 00 62 60 42 16 fc 00 66 | 60 3c 16 fc 00 76 60 36 |.b`B...f|`<...v`6|
|000008c0| 16 fc 00 3f 60 30 4a 2d | f1 b2 67 0e 70 00 10 07 |...?`0J-|..g.p...|
|000008d0| 67 08 17 07 d6 fc 00 01 | 60 1c 70 00 10 07 2f 00 |g.......|`.p.../.|
|000008e0| 48 6d f0 ba 2f 0b 4e ad | 06 92 2f 0b 4e ba 12 7c |Hm../.N.|../.N..||
|000008f0| d7 c0 4f ef 00 10 42 13 | 20 0c 4c ee 18 80 ff f4 |..O...B.| .L.....|
|00000900| 00 00 00 1a 06 22 80 00 | 00 00 05 36 2e 32 2e 32 |....."..|...6.2.2|
|00000910| 0d 4d 61 63 73 42 75 67 | 20 36 2e 32 2e 32 00 00 |.MacsBug| 6.2.2..|
|00000920| 01 00 00 00 01 1e 00 00 | 00 1e 00 00 00 32 00 35 |........|.....2.5|
|00000930| dc 74 08 74 00 00 00 1c | 00 32 00 00 76 65 72 73 |.t.t....|.2..vers|
|00000940| 00 00 00 0a 00 02 ff ff | 20 00 00 00 00 35 dc 0c |........| ....5..|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+